package com.srxz.personnelsystem.system.controller;

import com.srxz.personnelsystem.system.mapper.dto.UserInfoDTO;
import com.srxz.personnelsystem.system.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @author: wgchao
 * @createTime: 2019/1/8 2:26 PM
 * @Description: 测试使用
 */
@RestController
@Api(value = "测试模块")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/hello")
    @ApiOperation(value = "hello")
    public UserInfoDTO hello(){
        return testService.hello();
    }
}
